package com.fmi.timedealer.plan;

import java.io.Serializable;
import com.fmi.timedealer.ActivityItem;

public class PlannedActivity implements Serializable {

	private static final long serialVersionUID = 5274843283263287048L;
	private float duration;
	private int id;
	private int planId;
	private ActivityItem activityItem;
	private PlannedActivityMode mode;
	
	public PlannedActivity() {
		activityItem = new ActivityItem("", "", "");
		setMode(PlannedActivityMode.NONE);
	}
	
	public PlannedActivity(int id, int planId, float duration, ActivityItem item) {
		setPlanId(planId);
		setId(id);
		setDuration(duration);
		setActivityItem(item);
		setMode(PlannedActivityMode.NONE);
	}

	public float getDuration() {
		return duration;
	}

	public void setDuration(float duration) {
		this.duration = duration;
	}

	public int getPlanId() {
		return planId;
	}

	public void setPlanId(int planId) {
		this.planId = planId;
	}

	public ActivityItem getActivityItem() {
		return activityItem;
	}

	public void setActivityItem(ActivityItem activityItem) {
		this.activityItem = activityItem;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public PlannedActivityMode getMode() {
		return mode;
	}

	public void setMode(PlannedActivityMode mode) {
		this.mode = mode;
	}
	
}
